Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 3: Building and Grouping Predefined Shapes

../ch03/03fig09.gif
Figure 3.9

A 3-D plus sign

03fig09.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        Shape {
            appearance DEF White Appearance {
                material Material { }
            }
            geometry Box {
                size 25.0 2.0 2.0
            }
        },
        Shape {
            appearance USE White
            geometry Box {
                size 2.0 25.0 2.0
            }
        },
        Shape {
            appearance USE White
            geometry Box {
                size 2.0 2.0 25.0
            }
        }
    ]
}